import request from '@/utils/request';

// 设备每日在线数统计
export function getDeviceOnlineStatistics(query?: any) {
  return request({
    url: '/heartBeatStatistics/getDeviceOnlineStatistics',
    method: 'get',
    params: query,
  });
}

//  设备每日平均延时
export function getDeviceTimeDelayStatisticsget(query?: any) {
  return request({
    url: '/heartBeatStatistics/getDeviceTimeDelayStatisticsget',
    method: 'get',
    params: query,
  });
}

// 查询在线率
export function getDeviceOnlineRateStatistics(data: any) {
  return request({
    url: '/deviceOnlineRateStatistics/onlineRate',
    method: 'post',
    data,
  });
}
//  查询在线率详情
export function getDeviceonlineRateDetail(data: any) {
  return request({
    url: '/deviceOnlineRateStatistics/onlineRateDetail',
    method: 'post',
    data,
  });
}

// 国内
export const getStatisticsTwo = (params: any) => {
  return request({
    url: '/earthquakeQuickReport/getStatisticsTwo',
    method: 'get',
    params,
  });
};

// 国外
export const getStatisticsThree = (params: any) => {
  return request({
    url: '/earthquakeQuickReport/getStatisticsThree',
    method: 'get',
    params,
  });
};

export const getStatisticsQuickReport = (params: any) => {
  return request({
    url: '/earthquakeQuickReport/getStatisticsOne',
    method: 'get',
    params,
  });
};

export const getQuickReportTrend = (params: any) => {
  return request({
    url: '/earthquakeQuickReport/getQuickReportTrend',
    method: 'get',
    params,
  });
};
